package com.liu.spi;

import com.liu.spi.domain.Log;

import java.util.ServiceLoader;

/**
 * @author LIU
 * @version 1.0
 * @date 2024/6/18 10:23
 * @description TODO
 */
public class JdkSpi {
    public static void main(String[] args) {
        ServiceLoader<Log> load = ServiceLoader.load(Log.class);
        for (Log log : load) {
            log.debug();
        }

    }
}
